package com.eboss.sbs.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.eboss.sbs.R;
import com.eboss.sbs.activity.base.BaseActivity;

public class MyDatasActivity extends BaseActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		mActivity = this;
		setContentView(R.layout.activity_mydatas);
		super.onCreate(savedInstanceState);
		initView();
	}
	
	private void initView(){
		showView(R.id.titleback_btn_back, true);
		setTvText(R.id.tv_title, "数据报表 ");
		
		findViewById(R.id.titleback_btn_back).setOnClickListener(this);
		
		findViewById(R.id.ly_member_increase).setOnClickListener(this);
		findViewById(R.id.ly_member_consume).setOnClickListener(this);
		findViewById(R.id.ly_store_consume).setOnClickListener(this);
		findViewById(R.id.ly_point_issue).setOnClickListener(this);
		findViewById(R.id.ly_coupon_issue).setOnClickListener(this);
	}
	
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
			case R.id.titleback_btn_back:
				finish();
				break;
			case R.id.ly_member_increase:
				startActivity(new Intent(mActivity, DMemberIncreaseActivity.class));
				break;
			case R.id.ly_member_consume:
				startActivity(new Intent(mActivity, DMemberConsumeActivity.class));
				break;
			case R.id.ly_store_consume:
				startActivity(new Intent(mActivity, DStoreConsumeActivity.class));
				break;
			case R.id.ly_point_issue:
				startActivity(new Intent(mActivity, DPointIssueActivity.class));
				break;
			case R.id.ly_coupon_issue:
				startActivity(new Intent(mActivity, DCouponIssueActivity.class));
				break;
			default:break;
		}
		super.onClick(v);
	}
	
}
